package beuthTaskList;
import java.util.List;
import java.util.ArrayList;


public class TaskModel   {

	public Task currentAdministration ;
	
	public List<Task> administrates = new ArrayList<Task>();
	

	//Start of user code protectedClassAttributesTaskModel
	//End of user code		

	private static TaskModel instance = null;
	
	private TaskModel() {
		//Start of user code protectedJavaPrivateConstructorTaskModel
		//End of user code
	}

	public static TaskModel getInstance() {
		if (instance == null) {
			instance = new TaskModel();
		}
		return instance;
	}



	//Start of user code protectedJavaClassCodeTaskModel
	//End of user code

	public Task getCurrentAdministration() {
		return this.currentAdministration;
	}
	
	public void setCurrentAdministration(Task currentAdministration) {
			this.currentAdministration = currentAdministration;
	}	
	public List<Task> getAdministrates() {
		return this.administrates;
	}
	
	public void setAdministrates(List<Task> administrates) {
			this.administrates = administrates;
	}	
	

	@Override
	public String toString() {
		String returnString = "";
	
		returnString = returnString + "Object of type: TaskModel with Attributes: \n"; 
		returnString = returnString + "currentAdministration :<" + currentAdministration + "> ";
		returnString = returnString + "administrates :<" + administrates + "> ";
		
	
		//Start of user code protectedToStringTaskModel
		//End of user code
	
		return returnString;
	}
} 
